import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [
  { path: '', redirectTo: 'todolist', pathMatch: 'full' },
  { path: 'md', loadChildren: 'app/md/md.module.ts#MdModule' },
  { path: 'layouts', loadChildren: 'app/layouts/layouts.module.ts#LayoutsModule' },
  { path: 'flex', loadChildren: 'app/flex/flex.module.ts#FlexModule' },
  { path: 'todolist', loadChildren: 'app/todolist/todolist.module.ts#TodolistModule' }
]

@NgModule({
  imports: [ RouterModule.forRoot(routes, { useHash: true }) ],
  exports: [ RouterModule ]
})
export class AppRoutesModule {
}
